home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / dd11.arc / DD11.DOC < prev    next >
Encoding:
Text File  |  1989-07-02  |  9.5 KB  |  303 lines

  1.                           DD - Directory Time/Date
  2.  
  3.                            Version 1.1,  06-28-89
  4.  
  5.                   Universal Time/Datestamp change utility
  6.  
  7.                        Copyright (C) 1989 Ted Stephens
  8.  
  9.  
  10.  
  11. Disclaimer:
  12.  
  13.         This utility is not warranted to do anything at all.  It is
  14.         provided "as-is" only, with no other warranties expressed or
  15.         implied.  It may or may not perform according to the specs
  16.         below.  Use this utility solely at your own risk.
  17.  
  18.  
  19.         IN NO EVENT WILL I BE LIABLE TO YOU FOR ANY DAMAGES, INCLUDING
  20.         ANY LOST PROFITS, LOST SAVINGS OR OTHER INCIDENTAL OR CONSEQUENTIAL
  21.         DAMAGES ARISING OUT OF YOUR USE OR INABILITY TO USE THE PROGRAM,
  22.         OR FOR ANY CLAIM BY ANY OTHER PARTY.
  23.  
  24.  
  25. Warning:
  26.  
  27.         You should back-up any disk on which you plan to use this
  28.         utility.  DD has been tested on just about every DOS version,
  29.         disk format, and memory size possible; however, this does not
  30.         mean that you should brazenly trust me.  Be safe, make a
  31.         backup first.  Repeat,  MAKE A BACKUP OF YOUR DISK(S) FIRST!
  32.  
  33.  
  34. License:
  35.  
  36.         DD is provided as freeware.  There is are no restrictions on its
  37.         use, except that it may not be sold or distributed on a commercial
  38.         basis or with a commercial package, nor may it be distributed in
  39.         any modified form, nor may it be distributed without this license
  40.         notice and documentation file. The author reserves all rights
  41.         to the source code and executable code.
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.                           DD - Directory Time/Date
  49.  
  50.                            Version 1.1,  06-28-89
  51.  
  52.                   Universal Time/Datestamp change utility
  53.  
  54.                        Copyright (C) 1989 Ted Stephens
  55.  
  56.  
  57.  
  58.      'DD' is the only known utility around that can change the time
  59.   and date stamp on a DOS subdirectory, or even remove the time/datestamp
  60.   altogether.  It accomplishes this with some non-standard techniques,
  61.   as DOS provides no good way to alter time/datestamps on subdirectories.
  62.   It can alter the time/datestamps on files and volume labels as well.
  63.  
  64. USAGE: DD [filspec] [/Dmm-dd-yy] [/Thh:mm:ss] [/V] [/N] [/SD] [/SF] [/SV] [/SA]
  65.  
  66.        Where:   filespec    is any valid subdiectory name, including
  67.                             wildcards.  Paths are not supported.  Must
  68.                             be in the current directory.
  69.  
  70.                 /Dmm-dd-yy  specifies the date with which to stamp any
  71.                             matching entries.  Earliest date is  01-01-80,
  72.                             latest is 12-31-99.
  73.  
  74.                 /Thh:mm:ss  specifies the time with which to stamp any
  75.                             matching subdirectories.  Must be in 24 hour
  76.                             format; i.e. 1:32 p.m. is represented 13:32:00
  77.  
  78.                 /V          specifies verbose output.  All actions are
  79.                             reported to the screen.  Defaults to quiet
  80.                             mode.
  81.  
  82.                 /N          specifies that the time/datestamp be removed
  83.                             from matching entries.  Subsequent DIR commands
  84.                             will show any matching entries without
  85.                             any time or date at all.
  86.  
  87.                 /SD         select only subdirectories (default)
  88.  
  89.                 /SF         select only files
  90.  
  91.                 /SV         select only volume labels  (chkdsk hates /SV /N)
  92.  
  93.                 /SA         select all
  94.  
  95.         Running DD with no parameters brings up a brief help message.
  96.  
  97.         If you do not specify a date the current date is used.  If you do
  98.         not specify a time, the current time is used.
  99.  
  100.         Running DD without /D and /T has the effect of stamping all matching
  101.         entries with the current date and time.
  102.  
  103.                           DD - Directory Time/Date
  104.  
  105.                            Version 1.1,  06-28-89
  106.  
  107.                   Universal Time/Datestamp change utility
  108.  
  109.                        Copyright (C) 1989 Ted Stephens
  110.  
  111. EXAMPLES:
  112.  
  113.     Suppose the current directory on your hard disk looks like this:
  114.  
  115.  
  116.  Volume in drive D has no label
  117.  Directory of  D:\QB
  118.  
  119. .            <DIR>      5-02-88   9:09a
  120. ..           <DIR>      5-02-88   9:09a
  121. CURRENT      <DIR>      9-21-88   9:43a
  122. SOURCE       <DIR>     11-12-88   3:18p
  123. LIB          <DIR>      6-18-88  12:04p
  124. RENT     A      46073   4-18-89   5:47p
  125. HARDWARE DAT   107520   4-18-89   2:31p
  126. RENT     EXE    52928   4-18-89   4:31p
  127.         8 File(s)  29171712 bytes free
  128.  
  129.  
  130.      Now let's play.  I Type  DD LIB /N <ENTER>   The newly revised directory
  131.      looks like this:
  132.  
  133.  Volume in drive D has no label
  134.  Directory of  D:\QB
  135.  
  136. .            <DIR>      5-02-88   9:09a
  137. ..           <DIR>      5-02-88   9:09a
  138. CURRENT      <DIR>      9-21-88   9:43a
  139. SOURCE       <DIR>     11-12-88   3:18p
  140. LIB          <DIR>
  141. RENT     A      46073   4-18-89   5:47p
  142. HARDWARE DAT   107520   4-18-89   2:31p
  143. RENT     EXE    52928   4-18-89   4:31p
  144.         8 File(s)  29171712 bytes free
  145.  
  146.      Notice the missing time/datestamps on the LIB subdirectory (specified
  147.      by the /N option)
  148.  
  149.                           DD - Directory Time/Date
  150.  
  151.                            Version 1.1,  06-28-89
  152.  
  153.                   Universal Time/Datestamp change utility
  154.  
  155.                        Copyright (C) 1989 Ted Stephens
  156.  
  157.  
  158.      Now I type DD .. /T07:14:00 <ENTER>   This will change the time
  159.      on the .. subdirectory entry to 7:14 a.m. and the date to the current
  160.      date, as below.
  161.  
  162.  
  163.  Volume in drive D has no label
  164.  Directory of  D:\QB
  165.  
  166. .            <DIR>      5-02-88   9:09a
  167. ..           <DIR>      4-19-89   7:14a
  168. CURRENT      <DIR>      9-21-88   9:43a
  169. SOURCE       <DIR>     11-12-88   3:18p
  170. LIB          <DIR>
  171. RENT     A      46073   4-18-89   5:47p
  172. HARDWARE DAT   107520   4-18-89   2:31p
  173. RENT     EXE    52928   4-18-89   4:31p
  174.         8 File(s)  29171712 bytes free
  175.  
  176.  
  177.      My personal favorite is  DD *.* /N <ENTER>  to remove time/datestamps
  178.      from all subdirectory entries.  This gives a cleaner, less cluttered
  179.      DIR listing as follows:
  180.  
  181.  
  182.  Volume in drive D has no label
  183.  Directory of  D:\QB
  184.  
  185. .            <DIR>
  186. ..           <DIR>
  187. CURRENT      <DIR>
  188. SOURCE       <DIR>
  189. LIB          <DIR>
  190. RENT     A      46073   4-18-89   5:47p
  191. HARDWARE DAT   107520   4-18-89   2:31p
  192. RENT     EXE    52928   4-18-89   4:31p
  193.         8 File(s)  29171712 bytes free
  194.  
  195.                           DD - Directory Time/Date
  196.  
  197.                            Version 1.1,  06-28-89
  198.  
  199.                   Universal Time/Datestamp change utility
  200.  
  201.                        Copyright (C) 1989 Ted Stephens
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209. Limitations:
  210.  
  211.      DD will check, and will only work under, the following conditions:
  212.  
  213.  
  214.      * DOS version 2.x to 3.30
  215.  
  216.      * 256k free memory
  217.  
  218.      * Maximum 2k sector size
  219.  
  220.      * 12 or 16 bit FAT entries
  221.  
  222.      * Non-network drive
  223.  
  224.  
  225. Abilities:
  226.  
  227.      DD correctly handles the following:
  228.  
  229.      * 3.5" 720k or 1.44 Mb diskettes
  230.  
  231.      * 5.25" any format up to 1.2 Mb
  232.  
  233.      * Hard disks, including large partitions and third-party partitioning.
  234.  
  235.      * RAM disks.  Not too useful, but works.
  236.  
  237.  
  238.  
  239.                           DD - Directory Time/Date
  240.  
  241.                            Version 1.1,  06-28-89
  242.  
  243.                   Universal Time/Datestamp change utility
  244.  
  245.                        Copyright (C) 1989 Ted Stephens
  246.  
  247.  
  248. Notes:
  249.  
  250.      DD uses absolute disk sector reads and writes to bypass DOS.  This
  251.      causes most anti-virus type programs to jump up and down excitedly
  252.      while pointing an accusing finger and shouting "Bad Bad!".  For this
  253.      reason, you might want to turn off any alarms or traps you have
  254.      installed for virus protection.
  255.  
  256.      Just in case you suspect someone has modified DD to do bad things,
  257.      you can download a clean copy from CompuServe, BprogA-DL2; Exec-PC
  258.      414-964-5160; or Utility Exchange  614-442-6695.  Or, If you are a
  259.      Turbo Pascal programmer and have the Turbo Professional routines
  260.      from TurboPower Software, you can examine the source code for nasty
  261.      stuff and recompile DD.  Some things to look for are any references
  262.      to any filenames such as COMMAND.COM, CONFIG.SYS, etc. Also look for
  263.      any sort of TSR request, or any writes to the FAT area. DD does not
  264.      do any of these things, so if you find them, beware.
  265.  
  266. Revisions:
  267.  
  268.     1.0  04-19-1989 Initial release.
  269.  
  270.     1.1  06-28-1989  Changes to check for bad switches.
  271.                      Changed some structures to POOP (Pascal Object
  272.                        Oriented Programming)
  273.                      Added file/volume label date capability
  274.  
  275.  
  276.  
  277. Credits:
  278.  
  279.  
  280.      DD is similar to Peter Norton's FD utility in appearance and syntax,
  281.      although DD is an original program.
  282.  
  283.      Thanks to Kim Kokkonen of TurboPower Software for his routine to
  284.      calculate the starting cluster of a directory.
  285.  
  286.      Ray Duncan's book "Advanced MS-DOS", second edition, provided great
  287.      insight into calculating 12-bit FAT entries.  Thanks, Ray!
  288.  
  289.      Turbo Pascal is a registered trademark of Borland International.
  290.      Turbo Professional is a registered tradmark of TurboPower Software.
  291.      Peter Norton's FD is copyright Peter Norton Computing, Inc.
  292.  
  293.  
  294. Me:
  295.  
  296.      Send all comments, bugs, etc. to:
  297.  
  298.                 Ted Stephens            Home Phone (614)-898-3958
  299.                 7067 SpringHouse Ln.    Work Phone (614)-299-1441
  300.                 Columbus, OH 43229
  301.  
  302.                 CIS 76515,3433
  303.